import request from '@/utils/request'

// 获取 列表分页数据  post 传data参数  get传params参数
export function add(data) {
  return request({
    url: 'doctorAdvice/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: 'doctorAdvice/update',
    method: 'post',
    data
  })
}

export function stop(data) {
  return request({
    url: 'doctorAdvice/stop/' + data,
    method: 'delete'
  })
}

export function getAllAdvice(data) {
  return request({
    url: 'doctorAdvice/getAll',
    method: 'post',
    data
  })
}
